﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000BF3 RID: 3059
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MotionInfo : IMessage<MotionInfo>, IMessage, IEquatable<MotionInfo>, IDeepCloneable<MotionInfo>, IBufferMessage
	{
		// Token: 0x1700269C RID: 9884
		// (get) Token: 0x060088F8 RID: 35064 RVA: 0x0016C810 File Offset: 0x0016AA10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MotionInfo> Parser
		{
			get
			{
				return MotionInfo._parser;
			}
		}

		// Token: 0x1700269D RID: 9885
		// (get) Token: 0x060088F9 RID: 35065 RVA: 0x0016C817 File Offset: 0x0016AA17
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MotionInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700269E RID: 9886
		// (get) Token: 0x060088FA RID: 35066 RVA: 0x0016C829 File Offset: 0x0016AA29
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MotionInfo.Descriptor;
			}
		}

		// Token: 0x060088FB RID: 35067 RVA: 0x0016C830 File Offset: 0x0016AA30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MotionInfo()
		{
		}

		// Token: 0x060088FC RID: 35068 RVA: 0x0016C838 File Offset: 0x0016AA38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MotionInfo(MotionInfo other) : this()
		{
			this.pos_ = ((other.pos_ != null) ? other.pos_.Clone() : null);
			this.rot_ = ((other.rot_ != null) ? other.rot_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060088FD RID: 35069 RVA: 0x0016C894 File Offset: 0x0016AA94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MotionInfo Clone()
		{
			return new MotionInfo(this);
		}

		// Token: 0x1700269F RID: 9887
		// (get) Token: 0x060088FE RID: 35070 RVA: 0x0016C89C File Offset: 0x0016AA9C
		// (set) Token: 0x060088FF RID: 35071 RVA: 0x0016C8A4 File Offset: 0x0016AAA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public Vector Pos
		{
			get
			{
				return this.pos_;
			}
			set
			{
				this.pos_ = value;
			}
		}

		// Token: 0x170026A0 RID: 9888
		// (get) Token: 0x06008900 RID: 35072 RVA: 0x0016C8AD File Offset: 0x0016AAAD
		// (set) Token: 0x06008901 RID: 35073 RVA: 0x0016C8B5 File Offset: 0x0016AAB5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public Vector Rot
		{
			get
			{
				return this.rot_;
			}
			set
			{
				this.rot_ = value;
			}
		}

		// Token: 0x06008902 RID: 35074 RVA: 0x0016C8BE File Offset: 0x0016AABE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MotionInfo);
		}

		// Token: 0x06008903 RID: 35075 RVA: 0x0016C8CC File Offset: 0x0016AACC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MotionInfo other)
		{
			return other != null && (other == this || (object.Equals(this.Pos, other.Pos) && object.Equals(this.Rot, other.Rot) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06008904 RID: 35076 RVA: 0x0016C920 File Offset: 0x0016AB20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.pos_ != null)
			{
				num ^= this.Pos.GetHashCode();
			}
			if (this.rot_ != null)
			{
				num ^= this.Rot.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06008905 RID: 35077 RVA: 0x0016C972 File Offset: 0x0016AB72
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06008906 RID: 35078 RVA: 0x0016C97A File Offset: 0x0016AB7A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06008907 RID: 35079 RVA: 0x0016C984 File Offset: 0x0016AB84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.rot_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.Rot);
			}
			if (this.pos_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.Pos);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06008908 RID: 35080 RVA: 0x0016C9E0 File Offset: 0x0016ABE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.pos_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Pos);
			}
			if (this.rot_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Rot);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06008909 RID: 35081 RVA: 0x0016CA38 File Offset: 0x0016AC38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MotionInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.pos_ != null)
			{
				if (this.pos_ == null)
				{
					this.Pos = new Vector();
				}
				this.Pos.MergeFrom(other.Pos);
			}
			if (other.rot_ != null)
			{
				if (this.rot_ == null)
				{
					this.Rot = new Vector();
				}
				this.Rot.MergeFrom(other.Rot);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600890A RID: 35082 RVA: 0x0016CAB8 File Offset: 0x0016ACB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600890B RID: 35083 RVA: 0x0016CAC4 File Offset: 0x0016ACC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 58U)
				{
					if (num != 82U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.pos_ == null)
						{
							this.Pos = new Vector();
						}
						input.ReadMessage(this.Pos);
					}
				}
				else
				{
					if (this.rot_ == null)
					{
						this.Rot = new Vector();
					}
					input.ReadMessage(this.Rot);
				}
			}
		}

		// Token: 0x04003444 RID: 13380
		private static readonly MessageParser<MotionInfo> _parser = new MessageParser<MotionInfo>(() => new MotionInfo());

		// Token: 0x04003445 RID: 13381
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003446 RID: 13382
		public const int PosFieldNumber = 10;

		// Token: 0x04003447 RID: 13383
		private Vector pos_;

		// Token: 0x04003448 RID: 13384
		public const int RotFieldNumber = 7;

		// Token: 0x04003449 RID: 13385
		private Vector rot_;
	}
}
